﻿using System;
using System.Collections.Generic;

using System.Text;

namespace WeFeTeLib
{
    class FolderListener
    {
        /// <summary>
        /// Pass the results to the Framework object.
        /// </summary>
        /// <param name="o">The Framework object that is being tested</param>
        /// <param name="e">The FolderEventArgs that contains the File object and the conditions that it matched.</param>
        public void SaveResult(object o, FolderEventArgs e)
        {
            Framework framework = (Framework)o;
            Folder folder = e.Folder;
            framework.addDebugResult(folder.Name, "Folder", e.Conditions);
        }
    }
}
